package com.heima.App;

import com.heima.Service.StudentService;
import com.heima.Service.TeacherService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AppTeacher {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext cpac =
                new ClassPathXmlApplicationContext("ApplicationContext.xml");
        TeacherService teacherService = (TeacherService) cpac.getBean("teacherService");
        teacherService.one();
    }
}
